package com.yd.sdk.ad;


import android.app.Activity;

public interface IAd {

    /// <summary>
    /// 广告类型
    /// </summary>
    enum AdType
    {
        Banner,
        Interstitial,
        Reward
    }

    /// <summary>
    /// 横幅广告位置
    /// </summary>
    enum BannerPos
    {
        Top,
        Bottom
    }

    /// <summary>
    /// 设置测试设备
    /// </summary>
    /// <param name="ids"></param>
    void SetTestDeviceIds(String ids);

    /// <summary>
    /// 设置adId
    /// </summary>
    /// <param name="bannerId">横幅id</param>
    /// <param name="interstitialId">插入id</param>
    /// <param name="rewardId">激励id</param>
    void SetAdIds(String bannerId, String interstitialId, String rewardId);

    /// <summary>
    /// 加载广告
    /// </summary>
    /// <param name="adType">广告类型</param>
    void LoadedAd(AdType adType);

    /// <summary>
    /// 判断广告是否可用
    /// </summary>
    /// <param name="adType">广告类型</param>
    /// <returns></returns>
    boolean IsAdAvailable(AdType adType);

    /// <summary>
    /// 展示横幅广告
    /// </summary>
    /// <param name="pos"></param>
    void ShowBanner(BannerPos pos);

    /// <summary>
    /// 展示插入式广告
    /// </summary>
    void ShowInterstitial();

    /// <summary>
    /// 展示激励广告
    /// </summary>
    void ShowReward();

    /// <summary>
    /// 隐藏广告
    /// </summary>
    /// <param name="adType"></param>
    void HideAd(AdType adType);

}
